package com.example.basicdemo.service.impl;

import com.example.basicdemo.model.builder.DeployStartBuilder;
import com.example.basicdemo.model.result.DeployStartResult;
import com.example.basicdemo.service.FlowService;
import org.springframework.stereotype.Service;

@Service
public class FlowServiceImpl implements FlowService {

//    @Autowired
//    private IsyscoreConfigProperties isyscoreConfigProperties;
//
//    private IsyscoreClient client = new DefaultIsyscoreClient(isyscoreConfigProperties);

    /**
     * 启动工作流
     *
     * @param builder
     * @return
     */
    @Override
    public DeployStartResult deployStart(DeployStartBuilder builder) {
//        //参数校验
//        IsyscoreUtils.validateBuilder(builder);
//
//        //获取请求对象
//        DeployStartRequest request = new DeployStartRequest();
//        if (builder.getHeaders() != null) {
//            request.initHeaderParams(builder.getHeaders());
//        }
//        request.setBizModel(builder.getBizModel());
//        //调用接口
//        DeployStartResponse response = (DeployStartResponse) IsyscoreUtils.getResponse(client, request);
//
//        //结果封装
//        DeployStartResult result = new DeployStartResult(response);
//
//        return result;
        return null;
    }

}
